package com.bjpowernode.ba05;

import com.bjpowernode.ba05.School;

public class Person {
    private String  name;
    private int age;
    private int height;
    //引用类型
    private School school;
    private Animals animals;

    public void setAnimals(Animals animals) {
        this.animals = animals;
    }

    public void setSchool(School school) {
        this.school = school;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", school=" + school +
                ", animals=" + animals +
                '}';
    }
}
